<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String province = "";
String city = "";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>开溜儿网欢迎您！</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!-- 通过新浪地址库获得当前城市位置。 -->
	<script src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js" type="text/ecmascript"></script>

	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
		function getIpPlace() {
			document.getElementById("location").innerHTML="q"+remote_ip_info["province"];
			return remote_ip_info["province"];
		}
	</script>
  </head>
  
  <body> 
    <label id="location"></label>
    <script type="text/javascript">
   //通过新浪地址库获得地址。
   //?province='+remote_ip_info["province"]+'&city='+remote_ip_info["city"];
   		var uri1 =  remote_ip_info["province"];
   		uri1 = encodeURI(encodeURI(uri1));
   		var uri2 =  remote_ip_info["city"];
   		uri2 = encodeURI(encodeURI(uri2));
   		window.location.href = '${pageContext.request.contextPath}/user/index.do?province='+uri1+'&city='+uri2;
   </script>
  </body>
</html>
